package com.vbobot.demo.spring.cloud.gateway.ribbon.rules.hashing;

import com.google.common.hash.Hashing;
import java.nio.charset.StandardCharsets;

/**
 * @author Bobo
 * @date 2022/11/3
 */
public class MurmurHashStrategyImpl implements HashStrategy {

    @Override
    public int getHashCode(String origin) {
        return Hashing.murmur3_128().hashString(origin, StandardCharsets.UTF_8).hashCode();
    }
}
